import request from '@/utils/request'

/**
 * 获取用户信息
 */

export function getInfo(token) {
    return request({
        url: '/authority/info',
        method: 'get',
        params: {
            token
        }
    })
}

/*
 *登陆
 */

export function login(userId, passWord) {
    return request({
        url: '/user/login',
        method: 'post',
        data: {
            userId,
            passWord
        }
    })
}

/*
 *修改密码
 */

export function register(params) {
    return request({
        url: '/authority/updatePassword',
        method: 'post',
        params
    })
}